class Test(object):
    def __init__(self, name):
        self.__name = name

    def getName(self):
        print("======getter======")
        return self.__name

    def setName(self, name):
        print("======setter======")
        self.__name = name

    name = property(getName, setName)


t = Test('liuying')
t.name = 'lychiyu'
print(t.name)
